# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=poppler-data

pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.4.6
pkgrel=1
pkgdesc="Encoding data for the poppler PDF rendering library"
arch=('any')
license=('custom' 'GPL2')
conflicts=('poppler<0.10.5')
url="http://poppler.freedesktop.org/"
source=(http://poppler.freedesktop.org/${_realname}-${pkgver}.tar.gz)
md5sums=('a8a7ca808827dd674faba6e4fc73b471')

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make prefix=${MINGW_PREFIX} DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
  install -m644 COPYING COPYING.adobe \
    "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/"
}
